package com.etc.jdk22;

/**
 * @author: knowno
 * @create: 2025-09-22 11:24
 * @Version 1.0
 **/
public class TestUnnamedVariable {
//    static int count(Iterable<Order> orders) {
//        int total = 0;
//        for (Order _ : orders)    // Unnamed variable,如果IDEA中无法无法验证,大家直接放到jdk22+目录中,javac去跑.
//        {
//            total++;
//        }
//        return total;
//    }

    public static void main(String[] args) {

    }
}

class Order{

}
